#!/usr/bin/env python
# encoding: utf-8
'''
@author: 王震
@license: 四川凡狼科技有限公司
@contact: 2668985108@qq.com
@file: curriculum.py
@time: 2021/9/29 10:23 上午
@desc:
'''

from main import db
import datetime

class NewCourse(db.Model):
    __tablename__ = 'NEWCOURSE'

    id = db.Column(db.String(32), primary_key=True, unique=True, nullable=False, comment='id')
    name = db.Column(db.String(32), unique=True, nullable=False, comment='课程名称')
    describe = db.Column(db.String(32), unique=False, nullable=True, default='欢迎学习菁瑞教学课程', comment='课程描述')
    type = db.Column(db.Integer, unique=False, nullable=True, default=0, comment='0为前端1为后段，其他根据实际需求添加')
    show = db.Column(db.Integer, unique=False,  nullable=True, default=1, comment='1 线上 0  线下')
    createTime = db.Column(db.DateTime, unique=False, nullable=True, default=datetime.datetime.now, comment='创建时间')
    updateTime = db.Column(db.DateTime, unique=False, nullable=True, default=datetime.datetime.now,
                           onupdate=datetime.datetime.now, comment='更新时间')
